//============================================================================
// Name        : �ݽ��������̹���ϵͳ.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <string>
#include <ctime>
#include "./speechManager.h"


using namespace std;

int main() {
	//随机数种子
	srand((unsigned int)time(NULL));

	SpeechManager sm;
	int select = -1;
	while (true) {
		sm.show_Menu();
		cout << "请输入您的选择： " << endl;
		cin >> select;
		switch (select) {
		case 1: //开始比赛
			//sm.testShow();
			sm.startSpeech();
			break;
		case 2: //查看往届比赛记录
			sm.showRecord();
			break;
		case 3: //清空比赛记录
			sm.clearRecord();
			break;
		case 0: //退出系统
			cout << "欢迎下次使用！" << endl;
			exit(0);
			break;
		default:
			cout << "输入错误！ " << endl;
			break;
		}
		select = 0;
	}

	return 0;
}
